;
(function () {
  'use strict';
  angular.module('controllers.userBehaviorAnalysis.userChurnAnalysis', [])
    .controller('userChurnAnalysisCtrl', userChurnAnalysisCtrl);

  function userChurnAnalysisCtrl($scope, userChurnAnalysisService, CoreService, $rootScope) {
    $scope.pageInfo = userChurnAnalysisService;
    var spans = ['/dUserChurnAnalysis', '/userChurnRateAnalysis','/userLossDIAnalysis'];
    $scope.selectedIndex = CoreService.navgit(spans);
    $rootScope.$on('$stateChangeSuccess', function (event, state) {
      $scope.selectedIndex = spans.indexOf(state.url);
    });
  }

  userChurnAnalysisCtrl.$inject = ['$scope', 'userChurnAnalysisService', 'CoreService', '$rootScope'];
})();